From: Florian Müllner Date: Wed, 1 Jul 2020 14:49:17 +0000 (+0200) Subject: endSessionDialog: Support updates in restart dialog X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~55 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6edd3c4b932935d4a18f9299b7e0078326ae68ef;p=gnome-shell.git endSessionDialog: Support updates in restart dialog We will split off restart from the existing shutdown dialog, and instead offer it as a separate menu item in the session submenu. But before doing that, make sure that the existing restart dialog exposes the same feature set as power off. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2202 --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index b1a36d8cd..263bea324 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -80,13 +80,15 @@ const shutdownDialogContent = { const restartDialogContent = { subject: C_("title", "Restart"), + subjectWithUpdates: C_('title', 'Install Updates & Restart'), description(seconds) { return ngettext( 'The system will restart automatically in %d second.', 'The system will restart automatically in %d seconds.', seconds).format(seconds); }, - showBatteryWarning: false, + checkBoxText: C_('checkbox', 'Install pending software updates'), + showBatteryWarning: true, confirmButtons: [{ signal: 'ConfirmedReboot', label: C_('button', 'Restart'),